package com.salary.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.salary.entity.BasicSalary;
import com.salary.entity.dto.BasicSalaryDTO;
import com.staff.entity.Staff;

public interface IBasicSalaryService {
	public void saveOrUpdate(BasicSalary basicSalary);
	public void saveOrUpdate(BasicSalaryDTO dto);
	public void delete(BasicSalary basicSalary);
	public void delete(List<Long> ids);
	public BasicSalary findOne(Long id);
	public List<BasicSalary> findAll();
	public Page<BasicSalary> findAll(Specification<BasicSalary> spec, Pageable pageable);
	public Staff getStaff(Long id);
	public Staff getOperator(Long id);
	public BasicSalary findByStaff(Long staffId);
	public Page<BasicSalaryDTO> findPage(Specification<Staff> spec,Pageable pageable);
}
